
import * as ActionTypes from '../../../constants/constants.js'
import * as util from '../../../util/utils.js'

export const userInfo = (state = {}, action) => {
    switch (action.type) {
        case ActionTypes.userInfo:
            return action.data
        case ActionTypes.userInfoReset:
            return {}
        default:
            return state;
    }
}

export const userDashboard = (state = {
    refunds: 0,
    undelivery: 0,
    unfilled: 0,
    unpaid: 0,
}, action) => {
    switch (action.type) {
        case ActionTypes.userDashboard:
            return action.data
        default:
            return state;
    }
}
